package services;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.annotation.PostConstruct;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;

import modelo.Caracteristicaxsalon;
import modelo.Tiposuscripcion;
import dao.CaracteristicaxSalonDao;
import dao.TipoSuscripcionDao;

@ManagedBean(name = "caracteristicaxSalonService", eager = true)
@ApplicationScoped
public class CaracteristicaxSalonService implements Serializable {

	private static final long serialVersionUID = -150244452859486392L;
	
	private Caracteristicaxsalon caracteristicaxSalon;
	private List<Caracteristicaxsalon> listaCaracteristicaxSalon;
	private CaracteristicaxSalonDao caracteristicaxsalonDao;

	public CaracteristicaxSalonService() {
		super();
		this.setCaracteristicaxSalon(new Caracteristicaxsalon());
		this.setListaCaracteristicaxSalon(new ArrayList<Caracteristicaxsalon>());
		this.caracteristicaxsalonDao = new CaracteristicaxSalonDao();

		setListaCaracteristicaxSalon(caracteristicaxsalonDao.obtenerCaracteristicas());
	}

	public Caracteristicaxsalon getCaracteristicaxSalon() {
		return caracteristicaxSalon;
	}

	public void setCaracteristicaxSalon(Caracteristicaxsalon caracteristicaxSalon) {
		this.caracteristicaxSalon = caracteristicaxSalon;
	}

	public List<Caracteristicaxsalon> getListaCaracteristicaxSalon() {
		return listaCaracteristicaxSalon;
	}

	public void setListaCaracteristicaxSalon(
			List<Caracteristicaxsalon> listaCaracteristicaxSalon) {
		this.listaCaracteristicaxSalon = listaCaracteristicaxSalon;
	}

	public CaracteristicaxSalonDao getCaracteristicaxsalonDao() {
		return caracteristicaxsalonDao;
	}

	public void setCaracteristicaxsalonDao(
			CaracteristicaxSalonDao caracteristicaxsalonDao) {
		this.caracteristicaxsalonDao = caracteristicaxsalonDao;
	}

	public List<Caracteristicaxsalon> obtenerCaracteristicasxSalon(int idSalon){
		return caracteristicaxsalonDao.obtenerCaracteristicaxSalon(idSalon);
	}



}
